{volist name="list.list" id="vo"}
    <tr>
        <td>{$vo.id}</td>
        <td>{$vo.order_number}</td>
        <td>{$vo.user_name}</td>
        <td>{$vo.user_phone}</td>
        <td>{$vo.style_str}</td>
        <td>{$vo.house_type_str}</td>
        <td>{$vo.user_address}</td>
        <td>{$vo.create_time_str}</td>
        <td>{$vo.starting_time_str}</td>
        <td>{$vo.duration}天</td>
        <td>{$vo.design_user_name}</td>
        <td>{$vo.supervisor_name}</td>
        <td>{$vo.orderStatus_str}</td>
        <td>
            <a class="layui-btn layui-btn-xs selectTime"  lay-id="{$vo.order_number}"  lay-event="selectTime">开工时间</a>
            <a class="layui-btn layui-btn-xs setSupervisorUid"  lay-id="{$vo.order_number}"  lay-event="setSupervisorUid">选择监理</a>
            <a class="layui-btn layui-btn-xs orderFileBth"  lay-id="{$vo.order_number}"  lay-event="edit">上传图文</a>
            <a class="layui-btn layui-btn-xs edit"  lay-id="{$vo.order_number}"  lay-event="edit" style="margin-top: 10px;margin-left:0px;">工地收支</a>
            <a class="layui-btn layui-btn-xs edit"  lay-id="{$vo.order_number}"  lay-event="edit" style="margin-top: 10px;">工地日志</a>
        </td>
    </tr>
{/volist}
<script>
    layui.use(['form','layer','laydate','table','laytpl','element'],function(){
        var form = layui.form,
            layer = parent.layer === undefined ? layui.layer : top.layer,
            $ = layui.jquery;
        //新闻列表
        var info = $('#info').val();
        $('.addNews_btn').click(function () {
            layer.open({
                type: 2,
                title: '操作',
                shadeClose: true,
                shade: 0.8,
                area: ['700px','700px'],
                content: info //iframe的url
            });
        })

        $(".edit").on("click",function(){
            var menu_id=$(this).attr("lay-id");
            layer.open({
                type: 2,
                title: '操作',
                shadeClose: true,
                shade: 0.8,
                area: ['700px','700px'],
                content: info+'/menu_id/'+menu_id //iframe的url
            });
        });
        $(".selectTime").on("click",function(){
            var url  =$('#selectTime').val();
            var menu_id=$(this).attr("lay-id");
            layer.open({
                type: 2,
                title: '操作',
                shadeClose: true,
                shade: 0.8,
                area: ['700px','500px'],
                content: url+'/menu_id/'+menu_id //iframe的url
            });
        });
        $(".setSupervisorUid").on("click",function(){
            var url  =$('#setSupervisorUid').val();
            var menu_id=$(this).attr("lay-id");
            layer.open({
                type: 2,
                title: '操作',
                shadeClose: true,
                shade: 0.8,
                area: ['600px','600px'],
                content: url+'/menu_id/'+menu_id //iframe的url
            });
        });
        $(".orderFileBth").on("click",function(){
            var url  =$('#orderFile').val();
            var menu_id=$(this).attr("lay-id");
            layer.open({
                type: 2,
                title: '操作',
                shadeClose: true,
                shade: 0.8,
                area: ['700px','700px'],
                content: url+'/menu_id/'+menu_id //iframe的url
            });
        });
    })
</script>
